package com.stormragetech.teamwork.module.user.model;

import com.stormragetech.teamwork.module.user.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * description: //TODO
 *
 * @author: Xue Bin
 * @version: 1.0.0-SNAPSHOT
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegitrationModel implements Serializable {

    private static final long serialVersionUID = -4754103645087898014L;

    private String username;
    private String password;
    private String realname;

    public User toEntity() {
        return new User(this.username, this.realname);
    }

}
